﻿
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using Digitalmes.Model.PackageManagement;
using Digitalmes.Model;

namespace Digitalmes.ViewModel.PackageManagement.PackageBankVMs
{
    public partial class PackageBankTemplateVM : BaseTemplateVM
    {
        
        [Display(Name = "_Model._PackageBank._Sn")]
        public ExcelPropety Sn_Excel = ExcelPropety.CreateProperty<PackageBank>(x => x.Sn);
        [Display(Name = "_Model._PackageBank._ProductId")]
        public ExcelPropety ProductId_Excel = ExcelPropety.CreateProperty<PackageBank>(x => x.ProductId);
        [Display(Name = "_Model._PackageBank._ProductName")]
        public ExcelPropety ProductName_Excel = ExcelPropety.CreateProperty<PackageBank>(x => x.ProductName);
        [Display(Name = "_Model._PackageBank._StartTime")]
        public ExcelPropety StartTime_Excel = ExcelPropety.CreateProperty<PackageBank>(x => x.StartTime, true);
        [Display(Name = "_Model._PackageBank._LastTime")]
        public ExcelPropety LastTime_Excel = ExcelPropety.CreateProperty<PackageBank>(x => x.LastTime);
        [Display(Name = "_Model._PackageBank._CurrentCount")]
        public ExcelPropety CurrentCount_Excel = ExcelPropety.CreateProperty<PackageBank>(x => x.CurrentCount);
        [Display(Name = "_Model._PackageBank._Qty")]
        public ExcelPropety Qty_Excel = ExcelPropety.CreateProperty<PackageBank>(x => x.Qty);
        [Display(Name = "_Model._PackageBank._LastSn")]
        public ExcelPropety LastSn_Excel = ExcelPropety.CreateProperty<PackageBank>(x => x.LastSn);
        [Display(Name = "_Model._PackageBank._WoId")]
        public ExcelPropety WoId_Excel = ExcelPropety.CreateProperty<PackageBank>(x => x.WoId);
        [Display(Name = "_Model._PackageBank._WoCode")]
        public ExcelPropety WoCode_Excel = ExcelPropety.CreateProperty<PackageBank>(x => x.WoCode);
        [Display(Name = "_Model._PackageBank._IsValid")]
        public ExcelPropety IsValid_Excel = ExcelPropety.CreateProperty<PackageBank>(x => x.IsValid);
        [Display(Name = "_Model._PackageBank._TenantCode")]
        public ExcelPropety TenantCode_Excel = ExcelPropety.CreateProperty<PackageBank>(x => x.TenantCode);

	    protected override void InitVM()
        {
            
        }

    }

    public class PackageBankImportVM : BaseImportVM<PackageBankTemplateVM, PackageBank>
    {
            //import

    }

}